package com.yuyou.activity.group.service.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.activity.group.service.entity.ActivityGroupJob;

@Mapper
public interface ActivityGroupJobMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityGroupJob record);

    ActivityGroupJob selectByPrimaryKey(Long id);

    ActivityGroupJob selectByFId(@Param(value="fId")Long fId,
                                 @Param(value="type")Integer type,
                                 @Param(value="tag")String tag);

    List<ActivityGroupJob> findLoadedJob(Long allotTempId);

    int updateByPrimaryKeySelective(ActivityGroupJob record);

    int updateLoadedJob(Long allotTempId);

    int updateJobStatus(
            @Param(value = "fId") Long fId,
            @Param(value = "type") Integer type,
            @Param(value = "tag") String tag,
            @Param(value = "status") Integer status,@Param(value = "remark") String remark);

    void insertBatch(@Param(value = "list") List<ActivityGroupJob> list);
    
}